﻿<%@ Page Title="Rave Test" Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>Untitled Page</title>
    <script src="http://ajax.microsoft.com/ajax/jquery/jquery-1.4.2.min.js" type="text/javascript"></script>
    <script src="/Scripts/rave-bind.js" type="text/javascript"></script>
<%--    <script type="text/javascript">
        $(document).ready(function () {
            raveBind({
                key: "umbraco_bing",
                url: "/rave/",
                data: '<raveTranslateConfig key="umbraco_bing" cache="0" responseType="json"><url>http://www.bing.com/search?q=umbraco</url><xslt xsltPath="xslt/bingsample.xslt"><postRegex regularExpression="\\s+" replaceString=" " /></xslt></raveTranslateConfig>',
                dataType: "json",
                outputSelector: "#search_results"
            });
        });
    </script>--%>
<%--          <script type="text/javascript">
              $(document).ready(function () {
                  raveBind({
                      key: "umbraco_stackoverflow",
                      url: "/dynamic",
                      data: '<raveTranslateConfig key="umbraco_stackoverflow" cache="0" responseType="json"><url>http://stackoverflow.com/questions/tagged?tagnames=umbraco&amp;sort=newest&amp;pagesize=3</url><xslt xsltPath="/xslt/sosidebar.xslt"><postRegex regularExpression="\\s+" replaceString=" " /></xslt></raveTranslateConfig>',
                      dataType: "json",
                      outputSelector: "#search_results"
                  });
              });
      </script>--%>

    <script type="text/javascript">
        $(document).ready(function () {
            raveKeyBind({
                key: "umbraco_stackoverflow",
                url: "/key/umbraco_stackoverflow_popup",
                dataType: "json",
                outputSelector: "#search_results"
            });
        });
    </script>

</head>
<body>

<div id="search_results">Loading</div>

</body>
</html>
